Equivalence of the Relational Algebra a N D Calculus for Nested Relations

نویسندگان

  • LUCY GARNETT
  • ABDULLAH U. TANSEL
  • Bernard M. Baruch
چکیده

Abstrac t -The relational model is extended to include nested structures. This extension is formalised using the distinction between a tuple scheme and a relation scheme. The algebra and calculus languages are defined for this model. It is shown that the restricted powerset is a derived operation in the algebra and the full powerset is expressible by a safe forraula in the calculus. Since the full powerset cannot be derived from the algebra operations, there does not exist a complete equivalence between the calculus and the algebra. In other words, given any algebra expression, there is a mLfe calculus forrratla with equivalent expressive power. Convc~mely, given any safe calculus forrmlla and a bound on the cardinality of the database instance, there is a corresponding equivalent Algebra express ion. The relational algebra is then augmented with progrmomlng constructs and this augmented algebra is shown to be equivalent in expressive power to the relational calculus for nested relations.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Equivalence and Normal Forms for the Restricted and Bounded Fixpoint in the Nested Algebra

The nested model is an extension of the traditional, \\at" relational model in which relations can also have relation-valued entries. Its \default" query language, the nested algebra, is rather weak, unfortunately, since it is only a conservative extension of the traditional, \\at" relational algebra, and thus can only express a small fraction of the polynomial-time queries. Therefore, it was p...

متن کامل

A Conserative Property of a Nested Relational Query Language

We proposed in [7] a nested relational calculus and a nested relational algebra based on structural recursion [6,5] and on monads [27,16]. In this report, we describe relative set abstraction as our third nested relational query language. This query language is similar to the well known list comprehension mechanism in functional programming languages such as Haskell [ll], Miranda [24], KRC [23]...

متن کامل

Fixpoints and Bounded Fixpoints for Complex Objects

We investigate a query language for complex-object databases, which is designed to (1) express only tractable queries, and (2) be as expressive over flat relations as first order logic with fixpoints. The language is obtained by extending the nested relational algebra NRA with a "bounded fixpoint" operator. As in the flat case, all PTime computable queries over ordered databases are expressible...

متن کامل

Simulation of the Nested Relational Algebra by the at Relational Algebra, with an Application to the Complexity of Evaluating Powerset Algebra Expressions

Paredaens and Van Gucht proved that the at relational algebra has the same expressive power as the nested relational algebra, as far as queries over at relations and with at results are concerned. We provide a new, very direct proof of this fact using a simulation technique. Our technique is also applied to partially answer a question posed by Suciu and Paredaens regarding the complexity of eva...

متن کامل

The Powerset Algebra as a Natural Tool to Handle Nested Database Relations

The nested relational algebra is often inadequate as a tool to handle nested relations, since several important queries, such as transitive closure, cannot expressed by it. On the other hand, the powerset algebra does allow the expression of transitive closure, but in a too expensive way. Therefore, we consider various other extensions to the nested algebra, such as least tixpoint and programmi...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2002